package tech.aistar.philosophy.lod.version;

/**
 * 本类用来演示: 中介
 *
 * @author: success
 * @date: 2022/7/25 4:05 下午
 */
public class Middler implements MiddlerCompany{

    //中介应该维护房地产
    private HouseCompany houseCompany;//依赖倒置

    public void setHouseCompany(HouseCompany houseCompany) {
        this.houseCompany = houseCompany;
    }

    @Override
    public void recommend(String info) {
        this.houseCompany.info(info);
    }
}
